Xbasic

Context.Request

Syntax

dim result as C = Context.Request.GetHeader(HeaderName as C)

Arguments

HeaderNameCharacter

The name of the header to get the value.

Returns

resultCharacter

Returns the value of the specified header as a string.

Description

Get a header value as a string.

Discussion

The Context.Request.GetHeader() method returns the value for the specified header. If the header does not exist, Context.Request.GetHeader() returns an empty string. There is no distinction between a header that does not exist, and a header that exists with an empty value.

dim HeaderValue as c = Context.Request.GetHeader("MyHeader")